self-complementing counter

自补计数器